package com.ksj.Service;


import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class test {
    private static Logger LOG = LoggerFactory.getLogger(test.class);
    public static void main(String[] args) {
        try {
            String data = "{key:'value'{}}";
            JSONObject obj = new JSONObject(data);
            System.out.println(obj);
        }catch (JSONException e){
            LOG.error("msg",e);//正确
        }

        String str = "".substring(0,1);
        System.out.println(str);
    }

}
